<?php

/**
 * @desc 物流接口请求key,token
 */

return [
    'SF' =>  [          #顺丰物流配置
        'url'           => 'https://isco.sf-express.com/',
        'appkey'        => 'A0805',
        'appsecret'     => '96d3be6559a3b8f97fb2d01ddc1c91b2',
        'channelCode'   => 'US_USPS_F',
        'maxChannelCode' => 'US_USPS_F',
        'warehouseCode' => 'USLA-S1',
        'insert_order_path'=>'isco-outbound/rest/orderOutBoundApi/insert'
    ],

    'SFTest' =>  [      #顺丰物流配置测试
        'url'           => 'https://isco.sit.sf-express.com:12001/',
        'appkey'        => 'A0805',
        'appsecret'     => '1e885e0eceea88cb32160c7832cec5c4',
        'channelCode'   => 'MORKRM',
        'warehouseCode' => 'USLA-S1',
    ],

    'JY' => [    #金蚁配置
        'url'              => 'http://qqhwc.com',
        'create_order_path'=> '/Api/PendingOrder/Create',
        'create_token_path'=> '/Api/Public/GetToken',
        'get_order_path'   => '/Api/PendingOrder/GetOrder',
        'Wt_WarehouseTxt'  => '洛杉矶仓',
        'Wt_IsCOD'         => false,
        'Wt_StatusID'      => 2, // 1 存草稿箱  2 待分拣
        'Wt_DeliveryID'    => 1003,
        'Wt_DeliveryTxt'   => 'HWC-TK',
        'Wt_DeclaredValue' => 10,
        'Wt_InsuranceTrue' => true,
    ],

    'JJS' => [    #JJS配置
        'url'              => 'http://120.79.79.121:8101/WebService/PublicService.asmx/CreateOrder',
        'token'            => '3o4t3ILjmdn2b59zBNQUDzJJ/mYjz/cZlvwtTFb/oyY=',
    ],



    'TIKTOK' => [ // TIKTOK配置
        'basic_url'                    => 'https://open-api.tiktokglobalshop.com', //请求基础地址
        'get_orders_path'              =>  '/order/202309/orders', //获取订单详情地址
        'create_conversations_path'    =>  '/customer_service/202309/conversations', //创建会话消息地址
        'package_path'                 =>  '/fulfillment/202309/packages', //创建面单地址
        'orders_list_path'             =>  '/order/202309/orders/search', //拉取订单列表地址
        'orders_info_path'             =>  '/order/202309/orders', //拉取订单列表地址
        'orders_fulfillment_path'      =>  '/fulfillment/202309/orders/', //更新tik的订单信息
        'delivery_option_id'           =>  '7117858858072016686', //更新option_id
        'cancellations_search_path'    =>  '/return_refund/202309/cancellations/search', //更新订单退款信息
        'pay_amount_path'              =>  '/finance/202309/payments', //获取付款信息
    ],

    //海外仓配置
    'warehouse_arr' => [
        '3'=>'金蚁',
    ],

    //海外仓配置
    'warehouse_arr_old' => [
        '3'=>'金蚁',
        '4'=>'顺丰',
    ],


    //金蚁仓库对应库房ID
    'golden_ant_channel' => [
       '2015'   =>'TiK-shop',
       '1003'   =>'HWC-TK',
       '2011'   =>'HWC-SD',
       '1010'   =>'HWC-artificial',
       '1009'   =>'海外仓一6日签',
   ],

    //是否刷单
    'brush_list' => [
    'normal'   =>'正常',
    'hidden'   =>'隐藏',
    'brush'    =>'刷单'
   ],
    //发货明细订单状态 0未发货 1排队发货中 2发货异常 3回传物流单号  4发货成功 5忽略',
   'ship_status' => [
    '0'    =>'未发货',
    '1'    =>'排队发货中',
    '2'    =>'发货异常',
    '3'    =>'回传物流单号',
    '4'    =>'发货成功',
    '5'    =>'已处理',
    '6'    =>'异常重发',
   ],

    //面单文档创建结果 0默认 1创建中 2创建面单成功(待生成pdf)  3创建失败 4创建面单成功 5创建pdf失败 6已处理
    'documents_status' => [
        '0'    =>'默认',
        '1'    =>'创建中',
        '2'    =>'创建面单成功(待生成pdf)',
        '3'    =>'创建失败',
        '4'    =>'创建面单成功',
        '5'    =>'创建pdf失败',
        '6'    =>'已处理'
    ],


   //店铺地址配置
    'shop' => [
    'refresh_token_url' => 'https://auth.tiktok-shops.com/api/v2/token/refresh',
    'get_shop_url'      => '/authorization/202309/shops',
  ],

    // 17 track配置
    '17_track' => [
        'base_url' => 'https://api.17track.net/track/v2.2/register',
    ],

    //TIK回款支付状态
    'pay_status' => [
        'PROCESSING'=>'处理中',
        'PAID'      =>'已支付',
        'FAILED'    =>'支付失败',
    ],

    //云汇回款支付状态
    'yunhui_status' => [
        'PENDING'      =>'处理中',
        'SETTLED'      =>'已入账',
        'REJECTED'     =>'资金退回平台',
    ],

    //shopify服务器地址
    'shopify_computer' => [
        'base_url' => 'https://shopify.fan-zhou.com/',
    ],

    //目前在售spu数据维护
    'current_spu' => [
        'bra10',
        'bra81',
        'bra86',
        'sha01',
        'sha02',
        'sha08',
        'sha14',
        'sha21',
        'sha41',
        'sha43',
        'sha66',
    ],





    //广告-投放业绩规则
    'PerformanceRulesForAdvertising' => [
        ["刘慧","武汉","liuhui"],
        ["汪鑫","武汉","wangxin"],
        ["孟玉姣","武汉","mengyujiao"],
        ["张叶萌","武汉","zhangyemeng"],
        ["张可","武汉","zhangke"],
        ["李亮亮","银川","liliangliang"],
        ["张松伟","银川","zhangsongwei"],
        ["范毅","银川","fanyi"],
        ["代亮","银川","dailiang"],
        ["邱靖文","武汉","qiujingwen"],
        ["袁国昌","银川","yuanguochang"],
        ["马有宏","银川","mayouhong"],
        ["牛小涛","武汉","niuxiaotao"],
        ["孟玉姣","武汉","myj"],
        ["邱靖文","武汉","chengben"],
        ["张叶萌","武汉","zhangyememg"],
        ["邱靖文","武汉","spk"],
        ["孟玉姣","武汉","mengyujiaao"],
        ["代亮","银川","dailaing"],
    ],

    //广告-达人视频业绩规则
    'ExpertVideo' => [
        ["赵静怡","zjy"],
        ["张珏","zj"],
        ["徐艺芳","xyf"],
        ["黄凡","hf"],
        ["柳梦琪","lmq"],
    ],
    
    //广告-剪辑视频业绩规则
    'EditingVideos' => [
        ["岳飞凡","yff"],
        ["鄢雨融","yyr"],
    ],

    //店铺id匹配
    'shop_id' => [
        '7495307287634741720'=>1,
        '7495427784284473480'=>2,
        '7495428355527641801'=>3,
        '7495433146629196382'=>4,
        '7495505134895597828'=>5,
        '7495455100671593246'=>6,
        '7495468011065215317'=>7,
        '7495523886900348988'=>8,
        '7495455468934040089'=>9,
        '7495531138843642383'=>10,
        '7495573988704356571'=>11,
        '7495474931089574272'=>12,
        '7495576835268119035'=>13,
        '7495657838190037044'=>14,
        '7495667183257487883'=>15,
    ],


    //订单同步状态排序
    'order_status' => [
        'UNPAID'             =>1,
        'ON_HOLD'            =>2,
        'PARTIALLY_SHIPPING' =>3,
        'AWAITING_SHIPMENT'  =>4,
        'AWAITING_COLLECTION'=>5,
        'IN_TRANSIT'         =>6,
        'DELIVERED'          =>7,
        'COMPLETED'          =>8,
        'CANCEL'             =>9,
    ],

    //回款API-空中云汇
    'Airwallex' => [
        'apikey'=>"74c09f4f4d43b09a2cef25b6727e2c049583647804c98ee31ef09ea88b8f6673e2ba428dbbcfea38ad2483d0aadc5724",
        'id'=>"JRmV8O-kRQyUsa9DPw7OPA",
    ],

    //999 服务器地址
    '999_computer' => [
        'base_url' => 'https://newtiktok.chandao.icu/',
    ],

    'YiJT' => [    #易境通配置
        'url'              => 'http://www.szdyy.com.cn/hwc_api',
        'hwc_storage_list'=> '/hwc_storage_list.php',
        'hwc_paisongx'=> '/hwc_paisongx.php',
        'add_order'=> '/add_order.php',
        'hwc_order'=> '/hwc_order.php',
        'token'  => '1daef3d04bb028e29f62095de0f1da17',
        'ck_nums'  => 'LA(DYY-001)',
        'chqd'  => 'LA-DYY',
    ],


    //发海外仓的sku
    'hwc_sku' => [
        '0'=>'bra10',
        '1'=>'bra81',
        '2'=>'bra86',
        '3'=>'sha01',
        '4'=>'sha02',
        '5'=>'sha08',
        '6'=>'sha14',
        '7'=>'sha21',
        '8'=>'sha41',
        '9'=>'sha43',
        '10'=>'sha66',
    ],








];
